//
//  OrbitCam.h
//  CompGraf2
//
//  Created by Juan Niosi on 30/08/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#import <OpenGLES/ES2/gl.h>
#import <OpenGLES/ES2/glext.h>
#import "Engine.h"
#import "Camera.h"

@interface OrbitCam : Camera
{
    GLfloat distance;
    
    GLfloat minDist;
    GLfloat maxDist;
    
    GLfloat minX;
    GLfloat maxX;
    GLfloat *offset;
}
@property (nonatomic) GLfloat distance;
@property (nonatomic) GLfloat *offset;
@property (nonatomic) GLfloat minDist, maxDist;

- (id)init:(Engine *)engine;

- (void)translate:(GLfloat *)translation;
- (void)rotate:(GLfloat *)rot;
- (void)rotateX:(GLfloat )rot;
- (void)rotateY:(GLfloat )rot;
- (void)rotateZ:(GLfloat )rot;
- (void)zoom:(GLfloat)dist;

@end
